home *** CD-ROM | disk | FTP | other *** search
/ Developer CD Series 1997 July: Mac OS SDK / Dev.CD Jul 97 SDK1.toast / Development Kits (Disc 1) / Interfaces&Libraries / Interfaces / PInterfaces / TelephoneTools.p < prev    next >
Encoding:
Text File  |  1996-09-06  |  5.9 KB  |  296 lines  |  [TEXT/MPS ]

  1.  
  2. {
  3.  TelephoneTools.p
  4.  Pascal Interface to the Telephone Manager
  5.  
  6.   Copyright Apple Computer, Inc. 1990-1993
  7.   All rights reserved
  8. }
  9.  
  10.  
  11. {$IFC UNDEFINED UsingIncludes}
  12. {$SETC UsingIncludes := 0}
  13. {$ENDC}
  14.  
  15. {$IFC NOT UsingIncludes}
  16.     UNIT TelephoneTools;
  17.     INTERFACE
  18. {$ENDC}
  19.  
  20. {$IFC UNDEFINED UsingTelephoneTools}
  21. {$SETC UsingTelephoneTools := 1}
  22.  
  23. {$I+}
  24. {$SETC TelephoneToolsIncludes := UsingIncludes}
  25. {$SETC UsingIncludes := 1}
  26.  
  27. {$IFC UNDEFINED UsingTypes}
  28. {$I $$Shell(PInterfaces)Types.p}
  29. {$ENDC}
  30.  
  31. {$IFC UNDEFINED UsingDialogs}
  32. {$I $$Shell(PInterfaces)Dialogs.p}
  33. {$ENDC}
  34.  
  35. {$SETC UsingIncludes := TelephoneToolsIncludes}
  36.  
  37.  
  38. CONST
  39.     vdefType    = 'vdef';        { main telephone definition procedure }
  40.     vvalType    = 'vval';        { validation definition procedure }
  41.     vsetType    = 'vset';        { telephone setup definition procedure }
  42.     vlocType    = 'vloc';        { telephone configuration localization defProc }
  43.     vscrType    = 'vscr';        { telephone scripting defProc interfaces }
  44.  
  45.     vbndType    = 'vbnd';        { bundle type for telephone    }
  46.  
  47.     telValidateMsg            = 0;
  48.     telDefaultMsg            = 1;
  49.     
  50.     telMgetMsg                = 0;
  51.     telMsetMsg                = 1;
  52.     
  53.     telSpreflightMsg        = 0;
  54.     telSsetupMsg            = 1;
  55.     telSitemMsg                = 2;
  56.     telSfilterMsg            = 3;
  57.     telScleanupMsg            = 4;
  58.     
  59.     telL2EnglishMsg            = 0;
  60.     telL2IntlMsg            = 1;
  61.     
  62.     
  63.     telNewMsg                = 0;
  64.     telDisposeMsg            = 1;
  65.     telSuspendMsg            = 2;
  66.     telResumeMsg            = 3;
  67.     telMenuMsg                = 4;
  68.     telEventMsg                = 5;
  69.     telActivateMsg            = 6;
  70.     telDeactivateMsg        = 7;
  71.     
  72.     telIdleMsg                = 50;
  73.     telOpenTermMsg            = 51;    
  74.     telResetTermMsg            = 52;        
  75.     telCloseTermMsg            = 53;    
  76.     telTermMsgHandMsg        = 54;
  77.     telClrTermMsgHandMsg    = 55;
  78.     telTermEventsSuppMsg    = 56;
  79.     telGetInfoMsg            = 57;        
  80.     
  81.     
  82.     telCountDNsMsg             = 60;        
  83.     telDNLookupByIndexMsg     = 61;    
  84.     telDNLookupByNameMsg    = 62;
  85.     telCallbackCleaMsgr     = 63;
  86.     telOtherFeatListMsg        = 64;
  87.     telOtherFeatImplMsg        = 65;
  88.     telToolFunctionsMsg        = 66;
  89.     telOtherFunctionMsg        = 67;
  90.     
  91.     telGetHookswMsg            = 70;
  92.     telSetHookswMsg            = 71;
  93.     telGetVolumeMsg            = 72;
  94.     telSetVolumeMsg            = 73;
  95.     telAlertMsg                = 74;
  96.     telGetDisplayMsg        = 75;
  97.     telSetDisplayMsg        = 76;
  98.     
  99.     telDNSelectMsg            = 100;
  100.     telDNDisposeMsg            = 101;
  101.     telGetDNInfoMsg         = 102;
  102.     telGetDNFlagsMsg        = 103;
  103.     telDNMsgHandMsg         = 104;
  104.     telClrDNMsgHandMsg        = 105;
  105.     telDNEventsSuppMsg        = 106;
  106.     
  107.     telCountCAsMsg             = 110;
  108.     telCALookupMsg             = 111;
  109.     telCAMsgHandMsg         = 112;
  110.     telClrCAMsgHandMsg        = 113;
  111.     telCAEventsSuppMsg        = 114;
  112.     telSetupCallMsg         = 115;
  113.     
  114.     telForwardSetMsg         = 120;
  115.     telForwardClearMsg         = 121;
  116.     telDNDSetMsg             = 122;
  117.     telDNDClearMsg             = 123;
  118.     
  119.     telCADisposeMsg            = 200;
  120.     telGetCAStateMsg        = 201;
  121.     telGetCAFlagsMsg        = 202;
  122.     telGetCAInfoMsg         = 203;
  123.     telConnectMsg             = 204;
  124.     telDialDigitsMsg         = 205;
  125.     telAcceptCallMsg         = 206;
  126.     telRejectCallMsg         = 207;
  127.     telDeflectCallMsg         = 208;
  128.     telAnswerCallMsg        = 209;
  129.     telDropMsg                = 210;
  130.     telHoldMsg                 = 211;
  131.     telRetrieveMsg             = 212;
  132.     telConfSplitMsg            = 213;
  133.     telTransfBlindMsg        = 214;
  134.     telCallbackSetMsg         = 215;
  135.     telCallbackNowMsg        = 216;
  136.     telCallPickupMsg         = 217;
  137.     telParkCallMsg             = 218;
  138.     telRetrieveParkedCallMsg = 219;
  139.     telVoiceMailAccessMsg    = 220;
  140.     telPagingMsg            = 221;
  141.     telIntercomMsg            = 222;
  142.     
  143.     telConfPrepMsg             = 230;
  144.     telConfEstMsg             = 231;
  145.     telTransfPrepMsg         = 232;
  146.     telTransfEstMsg         = 233;
  147.     
  148.     telGetDNSoundInputMsg        = 240;
  149.     telDisposeDNSoundInputMsg     = 241;
  150.     telGetDNSoundOutputMsg        = 242;
  151.     telDisposeDNSoundOutputMsg     = 243;
  152.     telGetHSSoundInputMsg        = 244;
  153.     telDisposeHSSoundInputMsg     = 245;
  154.     telGetHSSoundOutputMsg        = 246;
  155.     telDisposeHSSoundOutputMsg     = 247;
  156.     telDNSetDTMFMsg                = 248;
  157.     telDNGetDTMFMsg                = 249;
  158.     telHSSetDTMFMsg                = 250;
  159.     telHSGetDTMFMsg                = 251;
  160.     telGetDNStatusMsg            = 252;
  161.     telGetDNProgressDetMsg        = 253;
  162.     telSetDNProgressDetMsg        = 254;
  163.     
  164.     telDNSetAutoAnswerMsg        = 260;
  165.     telDNTollSaverControlMsg     = 261;
  166.     telSetIndHSConnectMsg        = 262;
  167.     telGetIndHSConnectMsg        = 263;
  168.     
  169.     telCAVoiceDetectMsg            = 270;
  170.     telCASilenceDetectMsg        = 271;
  171.  
  172. TYPE
  173.  
  174. TELSetupPtr         = ^TELSetupStruct;
  175. TELSetupStruct     = RECORD
  176.     theDialog     :     DialogPtr;
  177.     count        :    INTEGER;
  178.     theConfig    :    Ptr;
  179.     procID        :    INTEGER;        { procID of the tool    }
  180. END;
  181.  
  182. TELForwardPB        = RECORD
  183.     forwardDN            : StringPtr;
  184.     forwardPartyName    : StringPtr;
  185.     forwardSubaddress    : StringPtr;
  186.     forwardType            : INTEGER;
  187.     numRings            : INTEGER;
  188. END;
  189.  
  190.  
  191. TELTermMsgPB        = RECORD
  192.     toolID            : INTEGER;
  193.     tRef            : INTEGER;
  194.     msg                : LONGINT;
  195.     mtype            : INTEGER;
  196.     value            : INTEGER;
  197. END;
  198.  
  199. TELDNMsgPB        = RECORD
  200.     toolID            : INTEGER;
  201.     tRef            : INTEGER;
  202.     dnRef            : INTEGER;
  203.     msg                : LONGINT;
  204.     mtype            : INTEGER;
  205.     value            : INTEGER;
  206.     rmtDN            : StringPtr;
  207.     rmtName            : StringPtr;
  208.     rmtSubaddress    : StringPtr;
  209. END;
  210.  
  211.  
  212. TELCAGenericMsgPB    = RECORD
  213.     toolID            : INTEGER;
  214.     tRef            : INTEGER;
  215.     dnRef            : INTEGER;
  216.     caRef            : INTEGER;
  217.     msg                : LONGINT;
  218.     mtype            : INTEGER;
  219.     value            : INTEGER;
  220.     rmtDN            : StringPtr;
  221.     rmtName            : StringPtr;
  222.     rmtSubaddress    : StringPtr;
  223.     dialType        : INTEGER;
  224. END;
  225.  
  226. TELCADisconMsgPB     = RECORD
  227.     toolID            : INTEGER;
  228.     tRef            : INTEGER;
  229.     dnRef            : INTEGER;
  230.     caRef            : INTEGER;
  231.     msg                : LONGINT;
  232.     mtype            : INTEGER;
  233.     value            : INTEGER;
  234. END;
  235.     
  236. TELCAConfMsgPB        = RECORD
  237.     toolID            : INTEGER;
  238.     tRef            : INTEGER;
  239.     dnRef            : INTEGER;
  240.     caRef            : INTEGER;
  241.     msg                : LONGINT;
  242.     mtype            : INTEGER;
  243.     value            : INTEGER;
  244. END;
  245.  
  246. TELCATransfMsgPB    = RECORD
  247.     toolID            : INTEGER;
  248.     tRef            : INTEGER;
  249.     dnRef            : INTEGER;
  250.     caRef            : INTEGER;
  251.     msg                : LONGINT;
  252.     mtype            : INTEGER;
  253.     value            : INTEGER;
  254.     rmtDN            : StringPtr;
  255.     rmtName            : StringPtr;
  256.     rmtSubaddress    : StringPtr;
  257.     dialType        : INTEGER;
  258. END;
  259.  
  260. TELCAInOutMsgPB    = RECORD
  261.     toolID            : INTEGER;
  262.     tRef            : INTEGER;
  263.     dnRef            : INTEGER;
  264.     caRef            : INTEGER;
  265.     msg                : LONGINT;
  266.     mtype            : INTEGER;
  267.     value            : INTEGER;
  268.     rmtDN            : StringPtr;
  269.     rmtName            : StringPtr;
  270.     rmtSubaddress    : StringPtr;
  271.     caState            : INTEGER;
  272.     intExt            : INTEGER;
  273.     callType        : INTEGER;
  274.     dialType        : INTEGER;
  275.     bearerType        : INTEGER;
  276.     rate            : INTEGER;
  277.     routeDN            : StringPtr;
  278.     routeName        : StringPtr;
  279.     routeSubaddress : StringPtr;
  280.     featureFlags    : LONGINT;
  281.     OtherFeatures    : LONGINT;
  282.     telCAPrivate    : LONGINT;
  283. END;
  284.  
  285.  
  286.  
  287. {$ENDC} {UsingTelephoneTools}
  288.  
  289. {$IFC NOT UsingIncludes}
  290.     END.
  291. {$ENDC}
  292.  
  293.  
  294.  
  295.     
  296.